//
//  DataBaseHandle.h
//  UI_18_DataBase
//
//  Created by FSD on 15/11/18.
//  Copyright © 2015年 apple. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface DataBaseHandle : NSObject

+ (instancetype)shareDataBase;

//打开数据库
- (void)openDataBase;

//关闭数据库
- (void)closeDataBase;

//创建表格
- (void)createTable;

//插入数据
- (void)insertDataBase:(NSString *)title withImage:(NSString *)image withURL:(NSString *)url withKind:(NSString *)kind;
//查询数据
- (NSMutableArray *)selectDataBase:(NSString *)title;
- (NSMutableArray *)selectSearchDataBase:(NSString *)title;

//删除数据
- (void)deleteDataBase:(NSString *)title;

//更新数据
- (void)updateDataBase:(NSInteger)age;
@end
